<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: FacilityQueueElement Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_facility_queue_element-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">FacilityQueueElement Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_facility.html" title="Facility class. ">Facility</a> Queue Element class.  
 <a href="class_facility_queue_element.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a1a80c73df22ab25ab73348f5ac5c3f1e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#a1a80c73df22ab25ab73348f5ac5c3f1e">FacilityQueueElement</a> (std::shared_ptr&lt; const <a class="el" href="class_token.html">Token</a> &gt; <a class="el" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a>, double <a class="el" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a>)</td></tr>
<tr class="memdesc:a1a80c73df22ab25ab73348f5ac5c3f1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines an element for the <a class="el" href="class_event.html" title="Event class. ">Event</a> Chain.  <a href="#a1a80c73df22ab25ab73348f5ac5c3f1e">More...</a><br/></td></tr>
<tr class="separator:a1a80c73df22ab25ab73348f5ac5c3f1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ae701683e8df14217045f7a9e5c8f5fd8"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; const <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a></td></tr>
<tr class="memdesc:ae701683e8df14217045f7a9e5c8f5fd8"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> object.  <a href="#ae701683e8df14217045f7a9e5c8f5fd8">More...</a><br/></td></tr>
<tr class="separator:ae701683e8df14217045f7a9e5c8f5fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af10475e117bdd152b9ee50ab41b1947e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a></td></tr>
<tr class="memdesc:af10475e117bdd152b9ee50ab41b1947e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Eventy type associated with token.  <a href="#af10475e117bdd152b9ee50ab41b1947e">More...</a><br/></td></tr>
<tr class="separator:af10475e117bdd152b9ee50ab41b1947e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8daf4ce8f3c3d88ce35f868971e871bd"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a></td></tr>
<tr class="separator:a8daf4ce8f3c3d88ce35f868971e871bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ae090afa77613543409d2f0c4c1cd6f4f"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#ae090afa77613543409d2f0c4c1cd6f4f">Facility</a></td></tr>
<tr class="memdesc:ae090afa77613543409d2f0c4c1cd6f4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Only <a class="el" href="class_facility.html" title="Facility class. ">Facility</a> can access these private members.  <a href="#ae090afa77613543409d2f0c4c1cd6f4f">More...</a><br/></td></tr>
<tr class="separator:ae090afa77613543409d2f0c4c1cd6f4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad14f0930b603531f9776678a4d8f694"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_facility_queue_element.html#aad14f0930b603531f9776678a4d8f694">operator&lt;</a> (const <a class="el" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;left, const <a class="el" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;right)</td></tr>
<tr class="memdesc:aad14f0930b603531f9776678a4d8f694"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator, non-member.  <a href="#aad14f0930b603531f9776678a4d8f694">More...</a><br/></td></tr>
<tr class="separator:aad14f0930b603531f9776678a4d8f694"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_facility.html" title="Facility class. ">Facility</a> Queue Element class. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>May 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>This class models an element within the priority queue within a facility. I.e., a facility has a priority queue. The priority queue has elements, composed of a token, the associated event type, and a service time for the token. Facilities can only process tokens. </dd></dl>

<p>Definition at line <a class="el" href="_facility_queue_element_8h_source.html#l00036">36</a> of file <a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1a80c73df22ab25ab73348f5ac5c3f1e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">FacilityQueueElement::FacilityQueueElement </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; const <a class="el" href="class_token.html">Token</a> &gt;&#160;</td>
          <td class="paramname"><em>token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td>
          <td class="paramname"><em>eventType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>serviceTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Defines an element for the <a class="el" href="class_event.html" title="Event class. ">Event</a> Chain. </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000008">Todo:</a></b></dt><dd><p class="startdd">Maybe we should include a flag "isBlocked" here and not fiddle with serviceTime = 0.0... It so happens that, if the token has just finished service, and </p>
<p>it is preempted before being released (serviceTime = 0.0), we need to set this serviceTime to &gt; 0 (a very small positive number) so the processing works right. </p>
<p class="enddd">Check SMPL. This is important for preempt function only. </p>
</dd></dl>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>May 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>The <a class="el" href="class_event.html" title="Event class. ">Event</a> Chain is a time-ordered list of events. The <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> is the agent responsible for putting events into the list, ordered by occurrence in time, and for retrieving events from the beginning of the list. When the <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> retrieves an event at the head of the list, it "causes" the event, or activates the agents responsible for "executing" the actions predicted in the event (such as a message arrival, message sending, etc.). Constructor with parameters.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">token</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> object. </td></tr>
    <tr><td class="paramname">eventType</td><td>Eventy type associated with token. </td></tr>
    <tr><td class="paramname">serviceTime</td><td>Service time of this token. It can be the remaining service time if the token was in service and was preempted (thus sent back to queue). For blocked tokens (i.e., tokens to which service did not yet begin), use serviceTime = 0.0.left The <a class="el" href="class_facility_queue_element.html" title="Facility Queue Element class. ">FacilityQueueElement</a> object to the "left", to be compared with the "right". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_facility_queue_element_8cpp_source.html#l00043">43</a> of file <a class="el" href="_facility_queue_element_8cpp_source.html">FacilityQueueElement.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                                                                                                                   : <a class="code" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a>(<a class="code" href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">eventType</a>), <a class="code" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a>(<a class="code" href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">serviceTime</a>) {</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    this-&gt;<a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a> = <a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div>
<div class="ttc" id="class_facility_queue_element_html_ae701683e8df14217045f7a9e5c8f5fd8"><div class="ttname"><a href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">FacilityQueueElement::token</a></div><div class="ttdeci">std::shared_ptr&lt; const Token &gt; token</div><div class="ttdoc">Token object. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00037">FacilityQueueElement.h:37</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_af10475e117bdd152b9ee50ab41b1947e"><div class="ttname"><a href="class_facility_queue_element.html#af10475e117bdd152b9ee50ab41b1947e">FacilityQueueElement::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Eventy type associated with token. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00038">FacilityQueueElement.h:38</a></div></div>
<div class="ttc" id="class_facility_queue_element_html_a8daf4ce8f3c3d88ce35f868971e871bd"><div class="ttname"><a href="class_facility_queue_element.html#a8daf4ce8f3c3d88ce35f868971e871bd">FacilityQueueElement::serviceTime</a></div><div class="ttdeci">double serviceTime</div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00039">FacilityQueueElement.h:39</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ae090afa77613543409d2f0c4c1cd6f4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="class_facility.html">Facility</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Only <a class="el" href="class_facility.html" title="Facility class. ">Facility</a> can access these private members. </p>

<p>Definition at line <a class="el" href="_facility_queue_element_8h_source.html#l00052">52</a> of file <a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>.</p>

</div>
</div>
<a class="anchor" id="aad14f0930b603531f9776678a4d8f694"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_facility_queue_element.html">FacilityQueueElement</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Comparator, non-member. </p>
<p>Operator &lt; overloading.</p>
<p>This is the overloading of the &lt; operator for use with priority_queue container. The result should be TRUE if the left token has lower priority than the right token.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The <a class="el" href="class_facility_queue_element.html" title="Facility Queue Element class. ">FacilityQueueElement</a> object to the "left", to be compared with the "right". </td></tr>
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_facility_queue_element.html" title="Facility Queue Element class. ">FacilityQueueElement</a> object to the "right", to be compared with the "left". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_facility_queue_element_8cpp_source.html#l00057">57</a> of file <a class="el" href="_facility_queue_element_8cpp_source.html">FacilityQueueElement.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                                                                                     {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordflow">return</span> left.<a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>-&gt;priority &gt;= right.<a class="code" href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">token</a>-&gt;priority;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div>
<div class="ttc" id="class_facility_queue_element_html_ae701683e8df14217045f7a9e5c8f5fd8"><div class="ttname"><a href="class_facility_queue_element.html#ae701683e8df14217045f7a9e5c8f5fd8">FacilityQueueElement::token</a></div><div class="ttdeci">std::shared_ptr&lt; const Token &gt; token</div><div class="ttdoc">Token object. </div><div class="ttdef"><b>Definition:</b> <a href="_facility_queue_element_8h_source.html#l00037">FacilityQueueElement.h:37</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="af10475e117bdd152b9ee50ab41b1947e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> FacilityQueueElement::eventType</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Eventy type associated with token. </p>

<p>Definition at line <a class="el" href="_facility_queue_element_8h_source.html#l00038">38</a> of file <a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8daf4ce8f3c3d88ce35f868971e871bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double FacilityQueueElement::serviceTime</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Service time of this token. It can be the remaining service time if the token was in service and was preempted (thus sent back to queue). For blocked tokens (i.e., tokens to which service did not yet begin), use serviceTime = 0.0. </p>

<p>Definition at line <a class="el" href="_facility_queue_element_8h_source.html#l00039">39</a> of file <a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae701683e8df14217045f7a9e5c8f5fd8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;const <a class="el" href="class_token.html">Token</a>&gt; FacilityQueueElement::token</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_token.html" title="Token class. ">Token</a> object. </p>

<p>Definition at line <a class="el" href="_facility_queue_element_8h_source.html#l00037">37</a> of file <a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_facility_queue_element_8h_source.html">FacilityQueueElement.h</a></li>
<li>QcnSim/<a class="el" href="_facility_queue_element_8cpp_source.html">FacilityQueueElement.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 15 2014 10:33:16 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
